﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using BLL;

namespace ClickDoacoes
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Usuario teste = new Usuario();
                teste.email = "rfsrafael@gmail.com";
                teste.cpf = "11111";
                teste.login = "rfsrafael";
                teste.telefone = "87906216";
                teste.senha = "123";
                teste.tipo = 1;
                UsuarioBusiness usuarioBusiness = new UsuarioBusiness();
                Usuario user = usuarioBusiness.Recuperar("rfsrafael");
                user.cpf = "222";
                usuarioBusiness.AtualizarUsuario(user);
            }
            catch(Exception ex)
            {
                lblteste.Text = ex.Message;
            }
        }
    }
}
